aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/payment/[id]/plain
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-02-11 23:23:32 -0800
committerAdam Soltys <[email protected]>2026-02-11 23:23:32 -0800
commit13f9ef7f26fff64c2bd54c8f9aa14e6ffac67121 (patch)
tree076cd631b671ff5ab74dee08c775c20c192ac659 /src/routes/(app)/payment/[id]/plain
parent2e61e8abbc318c36969cb5add0c63df81135b4ab (diff)
downloadcoinos-ui-13f9ef7f26fff64c2bd54c8f9aa14e6ffac67121.tar.gz
coinos-ui-13f9ef7f26fff64c2bd54c8f9aa14e6ffac67121.zip
fix svelte errors
Diffstat (limited to 'src/routes/(app)/payment/[id]/plain')
-rw-r--r--src/routes/(app)/payment/[id]/plain/+page.svelte22
1 files changed, 15 insertions, 7 deletions
diff --git a/src/routes/(app)/payment/[id]/plain/+page.svelte b/src/routes/(app)/payment/[id]/plain/+page.svelte
index ad582c02..41cdd25b 100644
--- a/src/routes/(app)/payment/[id]/plain/+page.svelte
+++ b/src/routes/(app)/payment/[id]/plain/+page.svelte
@@ -10,22 +10,30 @@
import { PUBLIC_EXPLORER as expl } from "$env/static/public";
let { data } = $props();
- let { user, payment: p } = data;
+ let user = $derived(data.user);
+ let p = $derived(data.payment);
- let { username } = user;
- let { id, amount, created, rate, type, ref, tip, ourfee, fee, currency } = p;
- let a = Math.abs(amount);
+ let username = $derived(user.username);
+ let id = $derived(p.id);
+ let amount = $derived(p.amount);
+ let created = $derived(p.created);
+ let rate = $derived(p.rate);
+ let type = $derived(p.type);
+ let ref = $derived(p.ref);
+ let tip = $derived(p.tip);
+ let ourfee = $derived(p.ourfee);
+ let fee = $derived(p.fee || 0);
+ let currency = $derived(p.currency);
+ let a = $derived(Math.abs(amount));
onMount(() => {
if (browser) {
let main = document.querySelector("main");
- main.style.paddingBottom = "0";
+ if (main) main.style.paddingBottom = "0";
window.onfocus = () => goto(`/payment/${id}`);
window.print();
}
});
-
- fee = fee || 0;
</script>
<div class="space-y-5">